package com.itheima.demo002;

public class homework002 {
    public static void main(String[] args) {
        /*
        第四天作业   1
        int money1 = 7988 - 1500;
        double money2 = 7988 * 0.8;
        if(money1 <= money2){
            System.out.println(money1 + "使用方案一");
        }
        else{
            System.out.println(money2 + "使用方案二");
        }
        */

        /*
        //第四天作业   2
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int a = sc.nextInt();
        System.out.println("请输入第二个整数");
        int b = sc.nextInt();
        System.out.println("请输入第三个整数");
        int c = sc.nextInt();
        int min;
        if (a < b && a < c){
            min = a;
        }
        else if(b < a && b < c){
            min = b;
        }
        else{
            min = c;
        }
        System.out.println("最小值是" + min);
        */

        /*
        第四天作业   3
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入金额");
        double money = sc.nextInt();
        System.out.println("请输入存储时间");
        int time = sc.nextInt();
        if(time == 1){
            money = money + money * 0.0225 * 1;
            System.out.println(money);
        }
        else if(time == 2){
            money = money + money * 0.027 * 2;
            System.out.println(money);
        }
        else if(time == 3){
            money = money + money * 0.0325 * 3;
            System.out.println(money);
        }
        else if(time == 5){
            money = money + money * 0.036 * 5;
            System.out.println(money);
        }
        else{
            System.out.println("请输入正确的年份");
        }
        System.out.println("存款" + time + "年后的本息是：" + money);
        */

        /*
        第四天作业   4
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入会员类别，0为普通顾客，1为会员");
        int vip = sc.nextInt();
        System.out.println("请输入顾客购物金额");
        int money = sc.nextInt();
        if(vip == 0 && money < 100){
            System.out.println(money);
        }
        if(vip == 0 && money >= 100){
            System.out.println(money * 0.9);
        }
        else if(vip == 1 && money < 200){
            System.out.println(money * 0.8);
        }
        else if(vip == 1 && money >= 200){
            System.out.println(money * 0.75);
        }
        else{
            System.out.println("请输入正确的会员类别");
        }
        */

        /*
        第四天作业   5
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int a = sc.nextInt();
        System.out.println("请输入第二个整数");
        int b = sc.nextInt();
        System.out.println("请输入你要进行的运算\n1+,2-,3*,4/");
        int i = sc.nextInt();
        switch (i) {
            case 1:
                i = a + b;
                System.out.println(i);
                break;
            case 2:
                i = a - b;
                System.out.println(i);
                break;
            case 3:
                i = a * b;
                System.out.println(i);
                break;
            case 4:
                i = a / b;
                System.out.println(i);
                break;
            default:
                System.out.println("请输入正确的运算");
                break;
        }
        */


    }
}
